package com.sky.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "员工登录返回的数据格式")  //Swagger常用注解，一般用在entity、DTO、VO这几个类里，用于描述对这些实体类的说明
public class EmployeeLoginVO implements Serializable {

    @ApiModelProperty("主键值")  //Swagger常用注解,顾名思义，用在属性上，描述属性信息
    private Long id;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("jwt令牌")
    private String token;

}
